package com.xujiang.myblog.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by xujiang on 2017/4/21.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserInfo {

    /**
     *
     * 登陆的泛型是此数据模型
     * 参考 AccessToken
     * 这个有三层结构
     *
     * */

    @JsonProperty("userId")
    private String userId;
    @JsonProperty("token")
    private String token;
    @JsonProperty("registerTime")
    private String registerTime;
    @JsonProperty("headPicture")
    private String headPicture;
    @JsonProperty("devToken")
    private String devToken;
    @JsonProperty("appVersionCode")
    private String appVersionCode;
    @JsonProperty("appVersion")
    private String appVersion;
    @JsonProperty("os")
    private String os;
    @JsonProperty("nickName")
    private String nickName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @JsonProperty("id")
    private String id;
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getHeadPicture() {
        return headPicture;
    }

    public void setHeadPicture(String headPicture) {
        this.headPicture = headPicture;
    }

    public String getDevToken() {
        return devToken;
    }

    public void setDevToken(String devToken) {
        this.devToken = devToken;
    }

    public String getAppVersionCode() {
        return appVersionCode;
    }

    public void setAppVersionCode(String appVersionCode) {
        this.appVersionCode = appVersionCode;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickname) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userId='" + userId + '\'' +
                ", token='" + token + '\'' +
                ", registerTime='" + registerTime + '\'' +
                ", headPicture='" + headPicture + '\'' +
                ", devToken='" + devToken + '\'' +
                ", appVersionCode='" + appVersionCode + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", os='" + os + '\'' +
                ", nickName='" + nickName + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
